﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master"
    CodeBehind="WfProveedorX.aspx.cs" Inherits="CO.WfProveedor" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<%--<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../Styles/General.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/token-input-facebook.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />

    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>

    <script src="../Scripts/jquery.tokeninput.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.purr.js" type="text/javascript"></script>
    <script src="../Scripts/General.js" type="text/javascript"></script>
    <style type="text/css">--%>
    <script type="text/javascript">
        function fLoadNumbers() {
            DoCallBack("RefreshLoadNumbers")
        }
        //---------------------------------------------------------//
        //        function End_fLoadNumbers(arg) {
        //            var mData = arg.split(":::");
        //            document.getElementById("tdValores").innerHTML = mData[0];
        //            //si utilizas jQuery sería así
        //            //$("#tdValores").html(mData[0]);
        //        }
        //---------------------------------------------------------//


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" 
             Orientation="Horizontal" onmenuitemclick="mnuToolbar_MenuItemClick" TabIndex="32">
               <Items>
                    <asp:MenuItem Text="Guardar" Value="_BTTSAVE" ImageUrl="../Images/Icons/Enabled/SAVE.png">
                </asp:MenuItem>
                     <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="DataHeader">
                <table id="TableDataHeader" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="3">
                            <input id="hddIdTercero" type="hidden" runat ="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            Datos Personales
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                <table width="100%" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td colspan="12">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Cod. Prov
                                        </td>
                                        <td colspan="9">
                                            <asp:TextBox ID="txtCodProv" runat="server" CssClass="esdTextBox" Enabled="False" TabIndex="1"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Tp. Personeria
                                        </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="ddPersoneria" runat="server" Width="185px" TabIndex="1">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Cliente
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddCliente" runat="server" Width="100px" TabIndex="2">
                                                <asp:ListItem Value="00">Seleccion</asp:ListItem>
                                                <asp:ListItem Value="1">SI</asp:ListItem>
                                                <asp:ListItem Value="0">NO</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Proveedor
                                        </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="ddProveedor" runat="server" Width="100px" TabIndex="3">
                                                <asp:ListItem Value="00">Seleccion</asp:ListItem>
                                                <asp:ListItem Value="1">SI</asp:ListItem>
                                                <asp:ListItem Value="0">NO</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Razon Social

                                        </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtRazonSoc" runat="server" CssClass="esdTextBox" TabIndex="4"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Apellido.
                                        </td>
                                        <td class="style10">
                                            <asp:TextBox ID="txtApellido" runat="server" CssClass="esdTextBox" TabIndex="5"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Tip. Sociedad
                                        </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="dpTipSociedad" runat="server" Width="100px" TabIndex="6">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Nombres Comercial
                                        </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtNombrecomercial" runat="server" CssClass="esdTextBox" TabIndex="7"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Email
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtEmail" runat="server" CssClass="esdTextBox" TabIndex="8"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Web
                                        </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtWeb" runat="server" CssClass="esdTextBox" TabIndex="9"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Doc.Identidad
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlidTDocIden" runat="server" Height="16px" TabIndex="10">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtnuDoc" runat="server" Width="80px" CssClass="esdTextBox" TabIndex="11"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;

                                        </td>
                                        <td colspan="2">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            Nro. Telefono
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTelef" runat="server" CssClass="esdTextBox" TabIndex="12"></asp:TextBox>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Nro. Celular
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNumCelular" runat="server" CssClass="esdTextBox" TabIndex="13"></asp:TextBox>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            Fax.
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFax" runat="server" CssClass="esdTextBox" TabIndex="14"></asp:TextBox>
                                        </td>
                                        <td colspan="2">
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            Grupo</td>
                                        <td>
                                            <asp:DropDownList ID="ddGrupo" runat="server" Width="185px" TabIndex="15">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Calificación
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddCalificacion" runat="server" Width="100px" TabIndex="16">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                       <td>
                                        </td>
                                        <td colspan="2">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                               
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>
                            <input id="hidVentana" runat="server" name="hidVentana" size="1" style="width: 32px; height: 22px" type="hidden" />

                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                <table width="100%" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td colspan="12">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            Dirección&nbsp; </td>
                                        <td colspan="4">
                                           <asp:DropDownList ID="ddav" runat="server" Width="80px" AutoPostBack="true" TabIndex="17" >
                                           </asp:DropDownList>
                                            <asp:TextBox ID="txtDir" runat="server" CssClass="esdTextBox" TabIndex="18"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;

                                        </td>
                                        <td>
                                            &nbsp;

                                        </td>
                                        <td>
                                            &nbsp;

                                        </td>
                                        <td colspan="2">
                                            &nbsp;

                                        </td>
                                        <td>
                                            &nbsp;

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Pais
                                        </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="ddPais" runat="server" Width="185px" onselectedindexchanged="ddPais_SelectedIndexChanged" AutoPostBack="True" TabIndex="19">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td class="style8">
                                            Departamento
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddDepa" runat="server" Width="185px" onselectedindexchanged="ddDepa_SelectedIndexChanged" AutoPostBack="True" TabIndex="20">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Urbanización
                                        </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtUrbanizacion" runat="server" CssClass="esdTextBox" TabIndex="23"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            Provincia
                                        </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="ddProv" runat="server" Width="185px" onselectedindexchanged="ddProv_SelectedIndexChanged" AutoPostBack="True" TabIndex="21">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style9">
                                            &nbsp;
                                        </td>
                                        <td>
                                            Distrito

                                        </td>
                                        <td class="style10">
                                            <asp:DropDownList ID="ddDistrito" runat="server" Width="185px" 
                                                AutoPostBack="True" TabIndex="22">
                                            </asp:DropDownList>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            RUC
                                        </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtRuc" runat="server" CssClass="esdTextBox" TabIndex="24"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td colspan="2">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td>        
                            <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                <table width="100%" cellpadding="0" cellspacing="2">
                                    <tr>
                                        <td colspan="10">
                                            &nbsp;
                                            Representante legal
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                        <td style="width: 110px;">
                                            Ap.Paterno
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtApePaterno" runat="server" Width="150px" CssClass="esdTextBox" TabIndex="25"></asp:TextBox>
                                        </td>
                                        <td style="width: 30px;">
                                            Ap.Materno
                                        </td>
                                        <td style="width: 110px;">
                                            <asp:TextBox ID="txtApeMat" runat="server" Width="150px" CssClass="esdTextBox"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="width: 30px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            Nombre.
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNom" runat="server" CssClass="esdTextBox" TabIndex="27"></asp:TextBox>
                                        </td>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            Email
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMail" runat="server" Width="150px" CssClass="esdTextBox" TabIndex="28"></asp:TextBox>
                                        </td>
                                        <td style="width: 30px;">
                                            Telf.
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTelf_" runat="server" Width="150px" CssClass="esdTextBox" TabIndex="29"></asp:TextBox>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="width: 30px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            Anexo
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtAnexo" runat="server" CssClass="esdTextBox" TabIndex="30"></asp:TextBox>
                                        </td>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            Radio
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtRadio" runat="server" CssClass="esdTextBox" TabIndex="31"></asp:TextBox>
                                        </td>
                                        <td style="width: 30px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="width: 30px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="10">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="10" align="center">
                                            <asp:Label ID="lblMensaje" runat="server" Font-Bold="True" ForeColor="#FF3300"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate> 
    </asp:UpdatePanel>
</asp:Content>
